package Template1.Cache;

/**
 * Created by asd73 on 2017/8/21.
 */
public abstract class Template_main {

    public final void templata_main(String authourity){
        doservice();
        if (authourity.equals("admin")){
            dao(authourity);
        }else {
            dao1(authourity);
        }
    }

    private void doservice(){
        System.out.println("日志记录");
    }

    protected abstract void dao(String s);

    protected abstract void dao1(String s);

}
